import request from '@/utils/request.js'

export const getAllChannels = ()=>{
	return request({
		url:'/app/v1_0/channels'
	})
}
export const deleteUserChannel = (channelId)=>{
	return request({
		url:`/app/v1_0/user/channels/${channelId}`,
		method:'DELETE'
	})
}
export const addUserChannel = (data)=>{
	return request({
		url:'/app/v1_0/user/channels',
		method:'PATCH',
		data:{
			channels:[data]
		}
	})
}